#include <iostream>
#include <vector>
using namespace std;
bool searchVal(vector<int>::iterator beg, vector<int>::iterator end,int val){
	while (beg != end){
		if(*beg == val){
			return true;
		}
	}
	return false;
}
int main(){
	vector<int> aList = {1,3,5,7,9,10};
	cout<< searchVal(aList.begin(),aList.end(),10)<< endl;
		}
